package com.vehicle.domains.vo.req.sysPermission;

import com.vehicle.annotations.EnumValue;
import com.vehicle.domains.vo.BasePageReq;
import com.vehicle.enums.PermissionTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "权限列表查询参数")
public class ListPermissionReq extends BasePageReq {
    @Schema(name = "permissionName", description = "权限名称（模糊查询）")
    private String permissionName;

    @Schema(name = "permissionCode", description = "权限编码（模糊查询）")
    private String permissionCode;

    @Schema(name = "permissionType", description = "权限类型（精确查询：MENU/BUTTON/API）")
    @EnumValue(enumClass = PermissionTypeEnum.class, message = "permissionType参数必须为MENU/BUTTON/API")
    private String permissionType;
}
